<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{% for item in studentList %}
    <li>{{item.name}}--{{item.age}}--{{item.sex}}--{{item.teacher.name}}</li>
{% endfor %}
</body>
</html>